package com.java.feign;

import com.java.entity.Product;
import org.springframework.stereotype.Component;

/**
 * @ClassNameProductFeignClientCallBack
 * @Description
 * @Author liufei
 * @Date2021/9/2 17:06
 * @Version V1.0
 **/
@Component
public class ProductFeignClientCallBack implements ProductFeignClient{
    /**
     * 配置需要调用的微服务接口
     *
     * @param id
     */
    @Override
    public Product findById(Long id) {
        Product product=new Product();
        product.setProductName("feign调用触发熔断降级方法");
        return product;
    }
}
